.border-1px-bottom(@color){
  position: relative;
  &:after{
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: '';
    transform:scaleY(0.5);
  }
}

.border-1px-top(@color){
  position: relative;
  &:before{
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: '';
    transform:scaleY(0.5);
  }
}

.border-1px-left(@color){
  position: relative;
  &:before{
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    bottom: 0;
    border-left: 1px solid @color;
    color: @color;
    transform-origin: 0 0;
    transform: scaleX(0.5);
  }
}
.border-1px-right(@color){
  position: relative;
  &:after{
    content: " ";
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    bottom: 0;
    border-left: 1px solid @color;
    color: @color;
    transform-origin: 0 0;
    transform: scaleX(0.5);
  }
}


.border-1px(@color) {
  position: relative;
  &:before {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    border: 1px solid @color;
    color: @color;
    height: 200%;
    transform-origin: left top;
    transform: scale(0.5);
  }
}

.border-none(){
  &:after{
    display: none;
  }
}

.ellipsis() {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bg-image(@url){
  background-image: url("@{url}.png");
}
